<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018\6\8 0008
  Time: 19:22
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <jsp:include page="/static/common/common.jsp"></jsp:include>
    <script type="text/javascript" src="/static/js/resource.js"></script>
</head>
<body>
<%--数据表格--%>
<table id="cus_grid"></table>
<div id="tb">
    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit'" onclick="edit()">修改信息</a>
    <a href="#" id="setCharge_btn" class="easyui-linkbutton" iconCls="icon-print" onclick="setCharge()">吸纳</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-reload" onclick="reload()">刷新</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-remove" onclick="faillog()">客户流失</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-tip" onclick="looksn()">查看编号</a><br>
    <%--查找条件--%>
    <font>创建日期:</font><input class="easyui-datebox qeury_date_text" name="startDate">~<input class="easyui-datebox qeury_date_text" name="endDate">&nbsp;&nbsp;
    <font>精确查找:</font><input class="easyui-textbox qeury_text" name="custom" prompt="客户姓名/联系方式"> &nbsp;
    <font>范围查找:</font>
                        <input class="easyui-combobox qeury_text" name="job" prompt="客户职业" data-options="panelHeight:'auto',valueField:'detailName',textField:'detailName',
                                url:'/dataDetail/menu.do?sn=JOB'"> &nbsp;
                        <input class="easyui-combobox qeury_text" name="salary" prompt="客户收入" data-options="panelHeight:'auto',valueField:'detailName',textField:'detailName',
                                url:'/dataDetail/menu.do?sn=SALARY_LEVEL'"> &nbsp;
    <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="query()">查找</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="reset()">重置查询条件</a>
</div>
<div id="form_btn">
    <a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="save()">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="cancel()">取消</a>
</div>
<div id="set_btn">
    <a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="setsave()">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="setcancel()">取消</a>
</div>
<%--查看联系方式--%>
<div id="resetpassword_dialog">
    <table id="tel_grid"></table>
</div>
<%--查看用户编码--%>
<div id="look_sn">
    <table id="sn_grid"></table>
</div>
<%--联系用户的弹窗--%>
<div id="tel_dialog">
    <img src="/static/images/tell.jpg" width="200"><br>
    <font color="#008b8b">正在为您联系客户......</font>
</div>
<%--新增,编辑 弹窗--%>
<div id="emp_dialog">
    <%--切记提交表单的方式--%>
    <form id="emp_form" method="post">
        <table align="center" style="margin-top: 15px">
            <input type="hidden" name="id"/>
            <input type="hidden" name="state"/>
            <tr>
                <td>姓名:</td>
                <td>
                    <input name="name" class="easyui-textbox" data-options="readonly:true" >
                </td>
            </tr>
            <tr>
                <td>性别:</td>
                <td>
                    <input name="gender" class="easyui-combobox" data-options="readonly:true,panelHeight:'auto',valueField:'value',textField:'label',
                                data:[{
                                    label: '男',
                                    value: '1'
                                },{
                                    label: '女',
                                    value: '0'
                                }]">
                </td>
            </tr>
            <tr>
                <td>年龄:</td>
                <td>
                    <input name="age" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>电话:</td>
                <td>
                    <input name="tel" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>邮箱:</td>
                <td>
                    <input name="email" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>客户地址:</td>
                <td>
                    <input name="address" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>QQ号:</td>
                <td>
                    <input name="qq" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>微信号:</td>
                <td>
                    <input name="wechat" class="easyui-textbox">
                </td>
            </tr>
            <tr>
                <td>客户身份证号:</td>
                <td><input name="idcard" class="easyui-textbox"></td>
            </tr>
            <tr>
                <td>客户工作:</td>
                <td><input name="job" class="easyui-combobox" data-options="panelHeight:'auto',valueField:'detailName',textField:'detailName',
                                url:'/dataDetail/menu.do?sn=JOB'"
                ></td>
            </tr>
            <tr>
                <td>客户来源:</td>
                <td><input name="customersource" class="easyui-combobox" data-options="panelHeight:'auto',valueField:'detailName',textField:'detailName',
                                url:'/dataDetail/menu.do?sn=CUSTOMER_SOURCE'"></td>
            </tr>
            <tr>
                <td>收入水平:</td>
                <td><input name="salarylevel" class="easyui-combobox" data-options="panelHeight:'auto',valueField:'detailName',textField:'detailName',
                    url:'/dataDetail/menu.do?sn=SALARY_LEVEL'"></td>
            </tr>
        </table>
    </form>
</div>
<%--编辑责任人弹窗--%>
<div id="inchargeuser_dialog">
    <form id="inchargeuser_form" method="post">
        <input name="id" type="hidden">
        <table>
            <tr>
                <td>当前客户:</td>
                <td><input name="name" class="easyui-textbox" data-options="readonly:true" ></td>
            </tr>
            <tr id="move_tr">
                <td id="move_td">设置当前责任人:</td>
                <td><input name="chargeId" class="easyui-combobox"
                           data-options="panelHeight:'auto',valueField:'id',textField:'username',
                                url:'/employee/selectAll.do'"></td>
            </tr>
        </table>
    </form>
</div>
<div id="fail_dialog">
    <form method="post" id="faiil_form">
        <input name="id" type="hidden">
        <%--<tr>
            <td>当前责人:   </td>
            <td><input id="charge" name="charge" class="easyui-textbox" data-options="readonly:true"></td><br>
        <tr>--%>
            <td>客户流失原因:</td>
            <td><input name="text" class="easyui-textbox" style="height: 200px" data-options="multiline:true"></td>
        </tr>
        </tr>
    </form>
</div>
<div id="fail_btn">
    <a href="#" class="easyui-linkbutton" iconCls="icon-save" onclick="failsave()">保存</a>
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="failcancel()">取消</a>
</div>
</body>
</html>
